package com.dongdongshop.service;

import com.dongdongshop.bo.CartBO;

import java.util.List;

public interface CartService {
    //添加购物车
    List<CartBO> addCart(List<CartBO> cartList,Long itemId,Integer num);
    //登录添加购物车
    List<CartBO> getCartFromRedis(Long id);

    void addCartToRedis(Long id, List<CartBO> cartBOS);

    List<CartBO> merge(List<CartBO> cartBOS, List<CartBO> cartList);
}
